//
//  VisitorView.h
//  OCMicroBlog
//
//  Created by 002 on 15/11/4.
//  Copyright © 2015年 002. All rights reserved.
//

#import <UIKit/UIKit.h>

@class VisitorView;

#pragma mark - 访客视图代理
@protocol VisitorViewDelegate <NSObject>

/**
 *  访客视图注册
 */
- (void)visitorLoginViewDidRegister;

/**
 *  访客视图登录
 */
- (void)visitorLoginViewDidLogin;

@end

typedef void(^visitorLoginViewDidRegisterBlock)();
typedef void(^visitorLoginViewDidLogin)();

@interface VisitorView : UIView

- (void)setupInfoWithImageName:(NSString *)imageName message:(NSString *)message;

// 代理对象
@property(nonatomic,weak) id<VisitorViewDelegate> delegate;
// 注册block
@property (nonatomic, copy) visitorLoginViewDidRegisterBlock registerBlock ;
// 登录block
@property (nonatomic, copy) visitorLoginViewDidLogin loginBlock ;

@end
